package com.why.jvm.hotspot.src.share.jdk;

import com.why.jvm.hotspot.src.share.vm.classfile.BootstrapClassLoader;
import com.why.jvm.hotspot.src.share.vm.oops.*;
import com.why.jvm.hotspot.src.share.vm.oops.constants.ConstantClass;
import com.why.jvm.hotspot.src.share.vm.oops.constants.ConstantUtf8Info;
import lombok.extern.slf4j.Slf4j;

/**
 * @author xiaoTian
 * @date 2022/7/16
 */
@Slf4j
public class Main {

    public static void main(String[] args) throws Exception {
        createJVM();
    }

    private static void createJVM() throws Exception {
        InstanceKlass instanceKlass = BootstrapClassLoader.loadClassFile("/Users/xiaotian/Desktop/workplace/study/hvm/target/classes/com/why/jvm/example/HelloWorld");

        print(instanceKlass);



    }
    private static void print(InstanceKlass instanceKlass){
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println("==================================");
        System.out.println(instanceKlass.toString());
    }
}
